'''
Created on 2012-9-27

@author: infear
'''
import sys;
arg=sys.argv[0:]
print arg
try:
    args=arg[2:]
    print ' '.join(reversed(args))
except:
    print ' '.join(reversed(arg))
finally:
    print ' '.join(reversed(arg))